#include "bthread.h"

#include <QDebug>

void BThread::setRunFlag()
{
    runFlag = true;
}

void BThread::run()
{
    while(1)
    {
        if(runFlag) {
            runFlag = false;
            qDebug() << "signals finish is sent";
            emit finished();
        }
        msleep(100);
    }
}
